#pragma once
#define _CRT_SECURE_NO_WARNINGS
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
void trim(char* src, char* dst) {
	int i, j;
	i = 0;
	j = strlen(src) - 1;
	while (src[i] == ' ' || src[i] == '\t' || src[i] == '\r' || src[i] == '\n') {
		i++;
	};
	while (src[j] == ' ' || src[j] == '\t' || src[j] == '\r' || src[j] == '\n') {
		j--;
	}
	strncpy(dst, src + i, j - i + 1);
	dst[j - i + 1] = '\0';
}
